{% extends "layout/_base.html" %}

{% load custom_tags %}
{% load static %}
{% block content %}
    {% get_article aid as article %}
    <div class="col-md-9 cl-left">
        <div class="cl-artical-content">
            <h2 class="cl-artical-title">{{ article.title }}</h2>
            <div class="cl-card-tag">
                <div><span>{{ article.views }}</span>人浏览 / <span>{{ article.comments|length }}</span>人评论</div>
            </div>
            <div class="cl-artical">
                {{ article.content_html|safe }}
            </div>
        </div>

        {% include 'layout/_comment_html.html' with comments=article.comments article_id=article.id %}
    </div>
{% endblock %}
{% block footerjs %}
    {% include 'layout/_comment_js.html' %}
{% endblock %}